<?php
$db=new mysqli('127.0.0.1','root','','db_bbs','3306');
if ($db->connect_error) {
	die("连接失败：". $db->connect_error);	
}

?>